<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title> - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="./src/css/bootstrap.min.css" rel="stylesheet">
    <link href="./src/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="./src/css/animate.css" rel="stylesheet">
    <link href="./src/css/style.css" rel="stylesheet">
    <link href="./src/css/login.css" rel="stylesheet">
    <script src="./src/js/jquery.min.js?v=2.1.4"></script>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
        $(function(){
          $("#tologin").click(function(){
              var username = $("#username").val();
              var password = $("#password").val();
            $.post("./?m=login&a=dologin",{'username':username,'password':password},function(result){
                if(result == "sucess"){
                    location.href = "./?m=index&a=index";
                }else{
                    alert("用户名或密码错误");
                }
            });
          });
        });
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-12">
                <form >
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到H+后台主题UI框架</p>
                    <input type="text" class="form-control uname" id="username" placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" id="password" placeholder="密码" />
                    <a href="">忘记密码了？</a>
                    <div class="btn btn-success btn-block" id="tologin">登录</div>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; hAdmin
            </div>
        </div>
    </div>
</body>

</html>
SS